package com.example.annotation.myannotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import com.example.annotation.enums.DataSourceType;


/**
 * @author fz
 * @creation time 2021/5/20
 */
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface DataSourceAnnotation {

    //默认master数据源
    DataSourceType value() default DataSourceType.MASTER;
}
